Skip to content

Conversation

@luqmana
Copy link
Contributor

@luqmana luqmana commented Sep 2, 2013

Fixes #6540. Also remove a fixme for #2619 since it's not relevant anymore.

bors added a commit that referenced this pull request Sep 2, 2013
Fixes #6540. Also remove a fixme for #2619 since it's not relevant anymore.
@bors bors closed this Sep 2, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 16, 2022
…al, r=dswij

Add new lint [`needless_parens_on_range_literals`]

changelog: Adds a new lint [`needless_parens_on_range_literals`] to warn on needless braces on literals in a range statement

For example, the lint would catch

```log
error: needless parenthesis on range literals can be removed
  --> $DIR/needless_parens_on_range_literals.rs:8:13
   |
LL |     let _ = ('a')..=('z');
   |             ^^^^^ help: try: `'a'`
   |
   = note: `-D clippy::needless-parens-on-range-literals` implied by `-D warnings`
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust fails when compiling with --lib

3 participants